package com.chengh.nami.system.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.chengh.nami.common.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * 部门实体类
 * @author chengh
 */
@Getter
@Setter
@TableName("sys_dept")
@Schema(name = "SysDept对象", description = "部门表")
public class SysDept extends BaseEntity {

    @Schema(name = "id", description = "ID")
    private Long id;

    @Schema(name = "parentId", description = "上级ID")
    private Long parentId;

    @Schema(name = "ancestors", description = "祖籍列表")
    private String ancestors;

    @Schema(name = "deptName", description = "部门名称")
    private String deptName;

    @Schema(name = "orderNum", description = "排序")
    private Integer orderNum;

    @Schema(name = "leader", description = "负责人名称")
    private String leader;

    @Schema(name = "phone", description = "联系方式")
    private String phone;

    @Schema(name = "email", description = "邮件")
    private String email;

    @Schema(name = "status", description = "状态")
    private String status;
}
